package com.groupbuying.orderconsumer.dao;

import com.groupbuying.orderconsumer.domain.CommodityOrderMainDO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 商品主订单表
 * @author vincentxin
 * @email vincentxin@aliyun.com
 * @date 2019-09-20 15:12:15
 * @des
 */

@Mapper
@Repository
public interface CommodityOrderMainDao {

	CommodityOrderMainDO get(String id);
	
	List<CommodityOrderMainDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(CommodityOrderMainDO commodityOrderMain);
	
	int update(CommodityOrderMainDO commodityOrderMain);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

	/**
	 * 修改订单状态
	 * @param map
	 */
	void updateById(Map<String, Object> map);
}
